package com.colorlight.cloud.grandshow.api;

import com.colorlight.cloud.gateway.api.message.constraint.event.Event;
import com.colorlight.cloud.gateway.api.message.constraint.protocol.ProtocolType;
import com.colorlight.cloud.grandshow.entity.enumerate.NameStruct;

/**
 * @author Demon
 * @date 23/1/2024  下午8:28
 */
public interface GrandShowEntityEvent extends Event {
	/**
	 * 获取当前指令枚举 默认实现 每个entity中都需要
	 *
	 * @return 指令枚举
	 * @author Demon
	 **/
	@Override
	default ProtocolType getProtocolType() {
		return NameStruct.getNameStructByClass(this.getClass());
	}
}
